cmake_minimum_required(VERSION 3.15.0)
project(yolov8-rknn VERSION LANGUAGES CXX)

set(CXX_STANDARD 17)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)

# 检索头文件
include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/src
    
)

set(Preprocess_INCLUDE ${CMAKE_SOURCE_DIR}/src/preprocess)
set(Postprocess_INCLUDE ${CMAKE_SOURCE_DIR}/src/postprocess)
set(Yolov8_INCLUDE ${CMAKE_SOURCE_DIR}/src/yolov8)
set(Yolo_threadpool_INCLUDE ${CMAKE_SOURCE_DIR}/src/yolo_threadpool)
set(Videofile_INCLUDE ${CMAKE_SOURCE_DIR}/src/videofile)


# OPENCV库
find_package(OpenCV REQUIRED)

# rknn api
set(RKNN_INCLUDE "/home/orangepi/Code/inference-rknn/third_party/rknn/Linux/librknn_api/include")
set(RKNN_SO "/home/orangepi/Code/inference-rknn/third_party/rknn/Linux/librknn_api/aarch64/librknnrt.so")

set(TIME_INCLUDE "/home/orangepi/Code/inference-rknn/third_party/time")
include_directories(${RKNN_INCLUDE})

add_subdirectory(src)

